<?php
use app\common\command\Menu;
return [
    //初始化权限路由
    'init' => [
        Menu::TYPE_INDEX => [
            [
                'name' => '博客',
                'route' => 'index/index',
            ],[
                'name' => '社区',
                'route' => '',
            ],[
                'name' => '工具',
                'route' => 'tool/index',
            ],[
                'name' => '联系',
                'route' => 'message/create',
            ],
        ],
        Menu::TYPE_ADMIN => [
            [
                "name"     => "控制台",
                "route"      => "index/console",
            ],[
                "name"     => "内容管理",
                "route"      => "",
                "children"  => [
                    [
                        "name"=> "分类管理",
                        "route" => "category/index",
                    ],[
                        "name"=> "话题管理",
                        "route" => "topic/index",
                    ],[
                        "name"=> "文章管理",
                        "route" => "article/index",
                    ],[
                        "name"=> "标签管理",
                        "route" => "tag/index",
                    ],
                ]
            ],[
                "name"     => "成员管理",
                "route"      => "",
                "children"  => [
                    [
                        "name"=> "用户管理",
                        "route" => "user/index",
                    ],[
                        "name"=> "权限管理",
                        "route" => "permission/index",
                    ],
                ]
            ],[
                "name"     => "消息管理",
                "route"      => "",
                "children"  => [
                    [
                        "name"=> "评论管理",
                        "route" => "comment/index",
                    ],[
                        "name"=> "留言管理",
                        "route" => "message/index",
                    ],
                ]
            ],[
                "name"     => "站点管理",
                "route"      => "",
                "children"  => [
                    [
                        "name"=> "日志管理",
                        "route" => "log/index",
                    ],[
                        "name"=> "站点设置",
                        "route" => "setting/index",
                    ],[
                        "name"=> "菜单管理",
                        "route" => "menu/index",
                    ],[
                        "name"=> "访问记录",
                        "route" => "statement/index",
                    ],
                ]
            ],[
                "name"     => "数据管理",
                "route"      => "",
                "children"  => [
                    [
                        "name"=> "数据清理",
                        "route" => "garbage/index",
                    ],[
                        "name"=> "备份还原",
                        "route" => "backup/index",
                    ],
                ]
            ],
        ],
    ]
];